// components/header/header.js
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    "title": String
  },

  /**
   * 组件的初始数据
   */
  data: {
    headerheight: 0,
    isback:false
  },
  attached () {
    this.setData({
      headerheight: app.globaData.topheight
    })
  },
  ready() {
    app.getbackstatus()
    // console.log(app.globaData)
    this.data.isback = app.globaData.isback
    this.setData({
      isback: app.globaData.isback
    })
  },
  methods: {
    headerbackfn() {
      wx.navigateBack()
    },
  }
})